package view.mediator 
{
	import event.ShowPanelEvent;
	import org.robotlegs.mvcs.Mediator;
	import view.panels.AddIdeaPanel;
	
	/**
	 * ...
	 * @author Qi Donghui
	 */
	public class AddIdeaPanelMediator extends Mediator 
	{
		[Inject]
		public var myView:AddIdeaPanel;
		
		public function AddIdeaPanelMediator() 
		{
			
		}
		
		override public function onRegister():void 
		{
			eventDispatcher.addEventListener(ShowPanelEvent.SHOW_ADD_IDEA_PANEL, onShowPanel);		
		}
		
		private function onShowPanel(e:ShowPanelEvent):void 
		{
			myView.show();
		}
		
	}

}